package com.tbit.uqbike.webmanager.session;

import com.tbit.uqbike.webmanager.controller.BaseController;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Created by MyWin on 2017/5/19.
 */
public class SessionEventListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {

    }

    @Override
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
        String sId = httpSessionEvent.getSession().getId();
        BaseController.delSid(sId);
    }
}
